package com.saicmotor.springboot_demo.service;

import com.saicmotor.springboot_demo.model.User;
import org.springframework.dao.DataRetrievalFailureException;

import java.util.List;

public interface UserService {
    int getAgeByName(String name);

    List<String> getNameByAge(int age);

    List<User> getAll();

    void insertUserInfo(String name, int age);

    void deleteByName(String name);

    void deleteByAge(int age);

    void updateAgeByName(String name, int age);

    void createUserTable(String tableName);

    void initUserTable();
}
